#pragma once
#include<string.h>
#include"protecol.h"
#include<iostream>
#include<unistd.h>
#include<stdio.h>
#include"CData.h"
#include"Buffer.h"
#include"Log.h"
using namespace std;

class BaseTask
{
public:
    BaseTask(char*body,int len,int socketfd);
    virtual ~BaseTask();

    virtual void work(Buffer*buffer)=0;

protected:
    char *m_body;
    int m_len;
    int m_socketfd;
};